<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="{$site_url}/" />
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset={$charset}" />
<meta http-equiv="Content-Type" content="text/html;charset={$charset}" />
{$page_seo}
<link href="{res file=css/global.css}" rel="stylesheet" type="text/css" />
<link href="{res file=shop.css}" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{lib file=jslang.js}"></script>
<script type="text/javascript" src="{lib file=jquery.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=ecmall.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=cart.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=kissy/build/kissy.js}"></script>
<script type="text/javascript" src="{lib file=kissy/build/switchable/switchable-pkg.js}"></script>
<script type="text/javascript" src="{lib file=jquery.plugins/jquery.lazyload.js}" charset="utf-8"></script>
<!--[if lte IE 6]>
<script type="text/javascript" language="Javascript" src="{res file=js/hoverForIE6.js}"></script>
<![endif]-->
<script type="text/javascript">
//<!CDATA[
var SITE_URL = "{$site_url}";
var REAL_SITE_URL = "{$real_site_url}";
var PRICE_FORMAT = '{$price_format}';

//]]>
</script>
{$_head_tags}
<!--<editmode></editmode>-->
</head>

<body>
    <script>
        $(function(){
		$("img.lazyload").lazyLoad();
                $(".top-search-tab li").click(function(){
                    $(this).parent().prepend($(this));

                });
    $(".top-search li").click(function() {
        $(".top-search li").each(function() {
            $(this).removeClass("current");
        });
        $(this).addClass("current");
        $(".top-search-box input[name='act']").val($(this).attr('data-id'));

        if ($.trim($(".top-search-box input[name='keyword']").val()) == "") {
            $(".top-search-box input[name='keyword']").attr("class", "");
            $(".top-search-box input[name='keyword']").addClass($(this).attr('data-id') + "_bj kw_bj keyword");
        }
    });

    $(".top-search-box input[name='keyword']").focus(function() {
        $(this).attr("class", "keyword");
    }).blur(function() {
        if ($.trim($(this).val()) == "") {
            $(this).attr("class", $(this).parent().find("input[name='act']").val() + "_bj kw_bj keyword");
        }
    });
    })
    </script>
<div id="site-nav" class="w-full">
   <div class="shoptop w clearfix">

      <ul class="quick-menu">
        {if !$index}<li class="home"><a href="{$site_url}">{$lang.back_home}</a></li>{/if}
        <li class="item">
           <div class="menu iwantbuy">
              <a class="menu-hd" href="{url app=category}">{$lang.i_want_buy}<b class="front"></b><b class="behind"></b></a>
              <div class="menu-bd">
                 <div class="menu-bd-panel">
                    <div>
                       <p><a href="{url app=category}">{$lang.gcategory}</a></p>
                    </div>
                 </div>
              </div>
           </div>
         </li>
         <li class="item">
            <div class="menu mytb">
               <a class="menu-hd" href="{url app=buyer_admin}">{$lang.im_buyer}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                        <p><a href="{url app=buyer_order}">{$lang.have_goods}</a></p>
                        <p><a href="{url app=friend}">{$lang.my_friends}</a></p>
                        <p><a href="{url app=my_question}">{$lang.my_advice}</a></p>
                     </div>
                  </div>
               </div>
            </div>
         </li>
         <li class="item">
            <div class="menu seller-center">
               <a class="menu-hd" href="{url app=seller_admin}">{$lang.Seller_Center}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                        <p><a href="{url app=seller_order}">{$lang.sold_goods}</a></p>
                        <p><a href="{url app=my_goods}">{$lang.selling_goods}</a></p>
                     </div>
                  </div>
               </div>
            </div>
         </li>
         <li class="service">
            <a href="{url app=article&code=help}">{$lang.help_center}</a>
         </li>
         <li class="item">
            <div class="menu favorite">
               <a class="menu-hd" href="{url app=my_favorite}">{$lang.favorite}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                       <p><a href="{url app=my_favorite}">{$lang.favorite_goods}</a></p>
                       <p><a href="{url app=my_favorite&type=store}">{$lang.favorite_store}</a></p>
                    </div>
                 </div>
               </div>
           </div>
         </li>
         <li class="item" style="background:none">
            <div class="menu sites">
               <a class="menu-hd" href="javascript:;">{$lang.navigation}<b class="front"></b><b class="behind"></b></a>
               <div class="menu-bd padding10">
                  <!--{foreach from=$navs.header item=nav}-->
                  <a href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}</a>
                  <!--{/foreach}-->
               </div>
            </div>
        </li>
     </ul>

      <div class="login_info">
         {$lang.hello}
         <!--{if !$visitor.user_id}-->
         <a href="{url app=member&act=login&ret_url=$ret_url}">{$lang.login}</a>
         <a href="{url app=member&act=register&ret_url=$ret_url}" style="color:#f10215">{$lang.free_charge}{$lang.register}</a>
         <!--{else}-->
          <!--lichen 2019/5/27 start-->
          <a href="{url app=member}">{$visitor.phone_mob|escape}</a>
          <!--<a href="{url app=member}">{$visitor.user_name|escape}</a>-->
          <!--lichen 2019/5/27 end-->
         <a href="{url app=message&act=newpm}">{$lang.pm}<!--{if $new_message}-->(<span>{$new_message}</span>)<!--{/if}--></a>
         <a href="{url app=member&act=logout}">{$lang.logout}</a>
         <!--{/if}-->
      </div>
   </div>
</div>
<div id="header" class="w-full">
    <div class="shop-t w clearfix">
        <div class="logo">
            <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a>
        </div>
        <div class="top-search">
            <div class="top-search-box clearfix">
                <ul class="top-search-tab clearfix">
                    <li id="index" class="current"><span>{$lang.goods}</span></li>
                    <li id="store"><span>{$lang.store}</span></li>
                </ul>
                <div class="form-fields">
                    <form method="GET" action="{url app=search}">
                        <input type="hidden" name="app" value="search" />
                        <input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{else}index{/if}" />
                        <input type="text"   name="keyword" value="{$smarty.get.keyword|escape}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{else}index{/if}_bj {/if}" />
                        <input type="submit" value="&#xf00d9;" class="iconfont submit" hidefocus="true" />
                    </form>
                </div>
            </div>
            <div class="top-search-keywords">
                <!--{foreach from=$hot_keywords item=keyword name=fe_keyword}-->
                <a {if $smarty.foreach.fe_keyword.first}style="color:#f10215;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a>
                <!--{/foreach}-->
            </div>
        </div>
        <div class="header_cart">
            <div class="title clearfix">
                <span class="iconfont">&#xf00e6;</span><a href="{url app=cart}">{$lang.my_cart}</a>
            </div>
            <div class="shoping"><span class="count-cart J_C_T_GoodsKinds">{$cart_goods_kinds}</span></div>
            <div class="cart-list">
                <!--{if $carts_top.cart_items}-->
                <div class="goods-list">
                    <h4>{$lang.newst_goods}</h4>
                    <!--{foreach from=$carts_top.cart_items item=cart name=fe_cart}-->
                    <div {if $smarty.foreach.fe_cart.last}style="border:0px;"{/if} class="clearfix list" id="cart_goods{$cart.rec_id}">
                        <div class="goods-img">
                            <a href="{url app=goods&id=$cart.goods_id}" target="_top"><img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40"/></a>
                        </div>
                        <div class="goods-title">
                            <a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a>
                        </div>
                        <div class="goods-admin">
                            <div class="mini-cart-count"><strong class="mini-cart-price J_C_T_Price">{$cart.price|price}×{$cart.quantity}</strong></div>
                            <div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">{$lang.drop}</a></div>
                        </div>
                    </div>
                    <!--{/foreach}-->
                </div>
                <div class="total">
                    <span>{$lang.gong}<strong class="J_C_T_GoodsKinds"> {$cart_goods_kinds} </strong>{$lang.items}</span><span>{$lang.gongji} <strong class="J_C_T_Amount">{$carts_top.total|price}</strong></span>
                    <a href="{url app=cart}">{$lang.go_cart}</a>
                </div>
                <!--{else}-->
                <div class="nogoods clearfix">
                    <b></b>{$lang.cart_info}
                </div>
                <!--{/if}-->
            </div>
        </div>
    </div>
    <div class="w-full mall-nav" >
        <div class="w clearfix">
            <ul class="float-left navitems">
                <!--{foreach from=$navs.middle item=nav}-->
                <li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $nav.hot==1}<span class="absolute block"></span>{/if}</a></li>
                <!--{/foreach}-->
            </ul>
        </div>
    </div>
</div>